#ifndef CONTROLPOINTCMD_H
#define CONTROLPOINTCMD_H

#include "Command/BaseCmd.h"
#include "Protocol/PointProtocol.h"

class ControlPointCmd : public BaseCmd
{
    Q_OBJECT
public:

    enum{FunctionCode = PointProtocol::ControlPoint};

    Q_INVOKABLE explicit ControlPointCmd(QObject *parent = 0);

    Package toPackage();
    void unPackage(Package package);

    quint16 address() const;
    void setAddress(const quint16 &address);

    quint16 value() const;
    void setValue(const quint16 &value);


private:
    quint16 m_address;
    quint16 m_value;
};

#endif // SETCONTROLPOINTCMD_H
